package test.hxy.mongoSchoolSimple.dao;

import org.springframework.data.mongodb.repository.MongoRepository;
import test.hxy.mongoSchoolSimple.model.Book;

import java.util.List;

public interface BookDao extends MongoRepository<Book, Object> {
    List<Book> findAll();
    List<Book> findByBookNameContains(String bookName);
    List<Book> findByPublisherEquals(String publisher);
    Book findByisbnEquals(String isbn);
}
